exif: Fix lat_ref/lon_ref handling.
authoroliskoli <oliskoli>
Wed, 23 Apr 2008 07:49:47 +0000 (07:49 +0000)
committeroliskoli <oliskoli>
Wed, 23 Apr 2008 07:49:47 +0000 (07:49 +0000)
exif.c

diff --git a/exif.c b/exif.c
index 4f2bd781401e5afe7e3347845acbc099d2554ef2..9496a943d0e169ba4f10cd97ea92d1dc72a5ea63 100644 (file)
--- a/exif.c
+++ b/exif.c
@@ -319,7 +319,7 @@ exif_read_tags(const int ifd)
                }
                
                if (lat_ref == 'S') wpt->latitude *= -1;
-               else 
+               else if (lat_ref != 'N') warning(MYNAME ": GPSLatitudeRef not set! Using N(orth).\n");
                if (lon_ref == 'W') wpt->longitude *= -1;
                else if (lon_ref != 'E') warning(MYNAME ": GPSLongitudeRef not set! Using E(east).\n");